package com.example.springboot01.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot01.entity.Course;
import com.example.springboot01.req.PageQueryReq;
import com.example.springboot01.resp.CourseDTO;

import java.util.List;

public interface CourseService extends IService<Course> {

    void addCourse(Course c);

    void delete(Integer cID);

    IPage<CourseDTO> getPage(PageQueryReq pageQueryReq);

    void updateCourse(Course c);

    void updateTeacher(Integer cID, Integer tID);

    Course getByTeacher(Integer teacherId);

    List<Course> getByProfessor(Integer professorId);

}
